<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<logic:empty name="usuario">
	<logic:forward name="login" />
</logic:empty>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	
	<body>
		<div class="blocks" style="width: 95%;">
			<div class="block" style="width: 500px;">
  				<h3 class="title"><span>Última Lectura de Tarificadores</span></h3>
  				<div class="block-div"></div><div class="block-div-arrow"></div>
  				<div id="opciones" style="text-align: left; width: 100%;">
	  				<ul style="height: 360px; overflow: auto; cursor: default;">						
						<logic:iterate id="parque" name="parques_sin_actualizar">
							<logic:equal value="S" name="parque" property="propio">
								<logic:iterate id="tarificador" name="parque" property="tarificadores">
									<logic:notEqual value="2" name="tarificador" property="orden">
										<li value="<bean:write name='tarificador' property='id_tarificador' format='#' />">
											<bean:write name="parque" property="nombre" />
												<logic:notEqual value="1" name="tarificador" property="orden">
													(<bean:write name="tarificador" property="nombre" />)
												</logic:notEqual>
												<span style="font-size: 12px;">
													<br>
													<logic:equal value="1" name="tarificador" property="lecturas_tm1[0].activa_exportada">
														<span style="color: red;">TM1: <bean:write name="tarificador" property="lecturas_tm1[0].fecha" format="dd/MM/yyyy HH:mm"/></span>
													</logic:equal>
													<logic:notEqual value="1" name="tarificador" property="lecturas_tm1[0].activa_exportada">
														TM1: <bean:write name="tarificador" property="lecturas_tm1[0].fecha" format="dd/MM/yyyy HH:mm"/>
													</logic:notEqual>
													 - 
													<logic:equal value="1" name="tarificador" property="lecturas_tm2[0].activa_exportada">
														<span style="color: red;">TM2: <bean:write name="tarificador" property="lecturas_tm2[0].fecha" format="dd/MM/yyyy HH:mm"/></span>
													</logic:equal>
													<logic:notEqual value="1" name="tarificador" property="lecturas_tm2[0].activa_exportada">
														TM2: <bean:write name="tarificador" property="lecturas_tm2[0].fecha" format="dd/MM/yyyy HH:mm"/>
													</logic:notEqual>
												</span>
										</li>
									</logic:notEqual>
								</logic:iterate>		
							</logic:equal>
						</logic:iterate>				              			                      	                     		                     
	            	</ul>                  	  				
  				</div>
  			</div>
		</div>		
	</body>
</html>